package com.guang.springbootscheduleexecutortest.dao.dao.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class DistributedLockRecordExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public DistributedLockRecordExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andLockKeyIsNull() {
            addCriterion("lock_key is null");
            return (Criteria) this;
        }

        public Criteria andLockKeyIsNotNull() {
            addCriterion("lock_key is not null");
            return (Criteria) this;
        }

        public Criteria andLockKeyEqualTo(String value) {
            addCriterion("lock_key =", value, "lockKey");
            return (Criteria) this;
        }

        public Criteria andLockKeyNotEqualTo(String value) {
            addCriterion("lock_key <>", value, "lockKey");
            return (Criteria) this;
        }

        public Criteria andLockKeyGreaterThan(String value) {
            addCriterion("lock_key >", value, "lockKey");
            return (Criteria) this;
        }

        public Criteria andLockKeyGreaterThanOrEqualTo(String value) {
            addCriterion("lock_key >=", value, "lockKey");
            return (Criteria) this;
        }

        public Criteria andLockKeyLessThan(String value) {
            addCriterion("lock_key <", value, "lockKey");
            return (Criteria) this;
        }

        public Criteria andLockKeyLessThanOrEqualTo(String value) {
            addCriterion("lock_key <=", value, "lockKey");
            return (Criteria) this;
        }

        public Criteria andLockKeyLike(String value) {
            addCriterion("lock_key like", value, "lockKey");
            return (Criteria) this;
        }

        public Criteria andLockKeyNotLike(String value) {
            addCriterion("lock_key not like", value, "lockKey");
            return (Criteria) this;
        }

        public Criteria andLockKeyIn(List<String> values) {
            addCriterion("lock_key in", values, "lockKey");
            return (Criteria) this;
        }

        public Criteria andLockKeyNotIn(List<String> values) {
            addCriterion("lock_key not in", values, "lockKey");
            return (Criteria) this;
        }

        public Criteria andLockKeyBetween(String value1, String value2) {
            addCriterion("lock_key between", value1, value2, "lockKey");
            return (Criteria) this;
        }

        public Criteria andLockKeyNotBetween(String value1, String value2) {
            addCriterion("lock_key not between", value1, value2, "lockKey");
            return (Criteria) this;
        }

        public Criteria andThreadNameIsNull() {
            addCriterion("thread_name is null");
            return (Criteria) this;
        }

        public Criteria andThreadNameIsNotNull() {
            addCriterion("thread_name is not null");
            return (Criteria) this;
        }

        public Criteria andThreadNameEqualTo(String value) {
            addCriterion("thread_name =", value, "threadName");
            return (Criteria) this;
        }

        public Criteria andThreadNameNotEqualTo(String value) {
            addCriterion("thread_name <>", value, "threadName");
            return (Criteria) this;
        }

        public Criteria andThreadNameGreaterThan(String value) {
            addCriterion("thread_name >", value, "threadName");
            return (Criteria) this;
        }

        public Criteria andThreadNameGreaterThanOrEqualTo(String value) {
            addCriterion("thread_name >=", value, "threadName");
            return (Criteria) this;
        }

        public Criteria andThreadNameLessThan(String value) {
            addCriterion("thread_name <", value, "threadName");
            return (Criteria) this;
        }

        public Criteria andThreadNameLessThanOrEqualTo(String value) {
            addCriterion("thread_name <=", value, "threadName");
            return (Criteria) this;
        }

        public Criteria andThreadNameLike(String value) {
            addCriterion("thread_name like", value, "threadName");
            return (Criteria) this;
        }

        public Criteria andThreadNameNotLike(String value) {
            addCriterion("thread_name not like", value, "threadName");
            return (Criteria) this;
        }

        public Criteria andThreadNameIn(List<String> values) {
            addCriterion("thread_name in", values, "threadName");
            return (Criteria) this;
        }

        public Criteria andThreadNameNotIn(List<String> values) {
            addCriterion("thread_name not in", values, "threadName");
            return (Criteria) this;
        }

        public Criteria andThreadNameBetween(String value1, String value2) {
            addCriterion("thread_name between", value1, value2, "threadName");
            return (Criteria) this;
        }

        public Criteria andThreadNameNotBetween(String value1, String value2) {
            addCriterion("thread_name not between", value1, value2, "threadName");
            return (Criteria) this;
        }

        public Criteria andUuidIsNull() {
            addCriterion("uuid is null");
            return (Criteria) this;
        }

        public Criteria andUuidIsNotNull() {
            addCriterion("uuid is not null");
            return (Criteria) this;
        }

        public Criteria andUuidEqualTo(String value) {
            addCriterion("uuid =", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidNotEqualTo(String value) {
            addCriterion("uuid <>", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidGreaterThan(String value) {
            addCriterion("uuid >", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidGreaterThanOrEqualTo(String value) {
            addCriterion("uuid >=", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidLessThan(String value) {
            addCriterion("uuid <", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidLessThanOrEqualTo(String value) {
            addCriterion("uuid <=", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidLike(String value) {
            addCriterion("uuid like", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidNotLike(String value) {
            addCriterion("uuid not like", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidIn(List<String> values) {
            addCriterion("uuid in", values, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidNotIn(List<String> values) {
            addCriterion("uuid not in", values, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidBetween(String value1, String value2) {
            addCriterion("uuid between", value1, value2, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidNotBetween(String value1, String value2) {
            addCriterion("uuid not between", value1, value2, "uuid");
            return (Criteria) this;
        }

        public Criteria andLockTimeOutIsNull() {
            addCriterion("lock_time_out is null");
            return (Criteria) this;
        }

        public Criteria andLockTimeOutIsNotNull() {
            addCriterion("lock_time_out is not null");
            return (Criteria) this;
        }

        public Criteria andLockTimeOutEqualTo(Date value) {
            addCriterion("lock_time_out =", value, "lockTimeOut");
            return (Criteria) this;
        }

        public Criteria andLockTimeOutNotEqualTo(Date value) {
            addCriterion("lock_time_out <>", value, "lockTimeOut");
            return (Criteria) this;
        }

        public Criteria andLockTimeOutGreaterThan(Date value) {
            addCriterion("lock_time_out >", value, "lockTimeOut");
            return (Criteria) this;
        }

        public Criteria andLockTimeOutGreaterThanOrEqualTo(Date value) {
            addCriterion("lock_time_out >=", value, "lockTimeOut");
            return (Criteria) this;
        }

        public Criteria andLockTimeOutLessThan(Date value) {
            addCriterion("lock_time_out <", value, "lockTimeOut");
            return (Criteria) this;
        }

        public Criteria andLockTimeOutLessThanOrEqualTo(Date value) {
            addCriterion("lock_time_out <=", value, "lockTimeOut");
            return (Criteria) this;
        }

        public Criteria andLockTimeOutIn(List<Date> values) {
            addCriterion("lock_time_out in", values, "lockTimeOut");
            return (Criteria) this;
        }

        public Criteria andLockTimeOutNotIn(List<Date> values) {
            addCriterion("lock_time_out not in", values, "lockTimeOut");
            return (Criteria) this;
        }

        public Criteria andLockTimeOutBetween(Date value1, Date value2) {
            addCriterion("lock_time_out between", value1, value2, "lockTimeOut");
            return (Criteria) this;
        }

        public Criteria andLockTimeOutNotBetween(Date value1, Date value2) {
            addCriterion("lock_time_out not between", value1, value2, "lockTimeOut");
            return (Criteria) this;
        }

        public Criteria andVersionIsNull() {
            addCriterion("version is null");
            return (Criteria) this;
        }

        public Criteria andVersionIsNotNull() {
            addCriterion("version is not null");
            return (Criteria) this;
        }

        public Criteria andVersionEqualTo(Integer value) {
            addCriterion("version =", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionNotEqualTo(Integer value) {
            addCriterion("version <>", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionGreaterThan(Integer value) {
            addCriterion("version >", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionGreaterThanOrEqualTo(Integer value) {
            addCriterion("version >=", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionLessThan(Integer value) {
            addCriterion("version <", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionLessThanOrEqualTo(Integer value) {
            addCriterion("version <=", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionIn(List<Integer> values) {
            addCriterion("version in", values, "version");
            return (Criteria) this;
        }

        public Criteria andVersionNotIn(List<Integer> values) {
            addCriterion("version not in", values, "version");
            return (Criteria) this;
        }

        public Criteria andVersionBetween(Integer value1, Integer value2) {
            addCriterion("version between", value1, value2, "version");
            return (Criteria) this;
        }

        public Criteria andVersionNotBetween(Integer value1, Integer value2) {
            addCriterion("version not between", value1, value2, "version");
            return (Criteria) this;
        }

        public Criteria andMachineIpIsNull() {
            addCriterion("machine_ip is null");
            return (Criteria) this;
        }

        public Criteria andMachineIpIsNotNull() {
            addCriterion("machine_ip is not null");
            return (Criteria) this;
        }

        public Criteria andMachineIpEqualTo(String value) {
            addCriterion("machine_ip =", value, "machineIp");
            return (Criteria) this;
        }

        public Criteria andMachineIpNotEqualTo(String value) {
            addCriterion("machine_ip <>", value, "machineIp");
            return (Criteria) this;
        }

        public Criteria andMachineIpGreaterThan(String value) {
            addCriterion("machine_ip >", value, "machineIp");
            return (Criteria) this;
        }

        public Criteria andMachineIpGreaterThanOrEqualTo(String value) {
            addCriterion("machine_ip >=", value, "machineIp");
            return (Criteria) this;
        }

        public Criteria andMachineIpLessThan(String value) {
            addCriterion("machine_ip <", value, "machineIp");
            return (Criteria) this;
        }

        public Criteria andMachineIpLessThanOrEqualTo(String value) {
            addCriterion("machine_ip <=", value, "machineIp");
            return (Criteria) this;
        }

        public Criteria andMachineIpLike(String value) {
            addCriterion("machine_ip like", value, "machineIp");
            return (Criteria) this;
        }

        public Criteria andMachineIpNotLike(String value) {
            addCriterion("machine_ip not like", value, "machineIp");
            return (Criteria) this;
        }

        public Criteria andMachineIpIn(List<String> values) {
            addCriterion("machine_ip in", values, "machineIp");
            return (Criteria) this;
        }

        public Criteria andMachineIpNotIn(List<String> values) {
            addCriterion("machine_ip not in", values, "machineIp");
            return (Criteria) this;
        }

        public Criteria andMachineIpBetween(String value1, String value2) {
            addCriterion("machine_ip between", value1, value2, "machineIp");
            return (Criteria) this;
        }

        public Criteria andMachineIpNotBetween(String value1, String value2) {
            addCriterion("machine_ip not between", value1, value2, "machineIp");
            return (Criteria) this;
        }

        public Criteria andMachinePortIsNull() {
            addCriterion("machine_port is null");
            return (Criteria) this;
        }

        public Criteria andMachinePortIsNotNull() {
            addCriterion("machine_port is not null");
            return (Criteria) this;
        }

        public Criteria andMachinePortEqualTo(String value) {
            addCriterion("machine_port =", value, "machinePort");
            return (Criteria) this;
        }

        public Criteria andMachinePortNotEqualTo(String value) {
            addCriterion("machine_port <>", value, "machinePort");
            return (Criteria) this;
        }

        public Criteria andMachinePortGreaterThan(String value) {
            addCriterion("machine_port >", value, "machinePort");
            return (Criteria) this;
        }

        public Criteria andMachinePortGreaterThanOrEqualTo(String value) {
            addCriterion("machine_port >=", value, "machinePort");
            return (Criteria) this;
        }

        public Criteria andMachinePortLessThan(String value) {
            addCriterion("machine_port <", value, "machinePort");
            return (Criteria) this;
        }

        public Criteria andMachinePortLessThanOrEqualTo(String value) {
            addCriterion("machine_port <=", value, "machinePort");
            return (Criteria) this;
        }

        public Criteria andMachinePortLike(String value) {
            addCriterion("machine_port like", value, "machinePort");
            return (Criteria) this;
        }

        public Criteria andMachinePortNotLike(String value) {
            addCriterion("machine_port not like", value, "machinePort");
            return (Criteria) this;
        }

        public Criteria andMachinePortIn(List<String> values) {
            addCriterion("machine_port in", values, "machinePort");
            return (Criteria) this;
        }

        public Criteria andMachinePortNotIn(List<String> values) {
            addCriterion("machine_port not in", values, "machinePort");
            return (Criteria) this;
        }

        public Criteria andMachinePortBetween(String value1, String value2) {
            addCriterion("machine_port between", value1, value2, "machinePort");
            return (Criteria) this;
        }

        public Criteria andMachinePortNotBetween(String value1, String value2) {
            addCriterion("machine_port not between", value1, value2, "machinePort");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}